package com.study.java.jinjie.jihe.lianxi.si;


import java.util.*;

public class Test {

    public static void main(String[] args) {

        Set<Student> students = new HashSet<>();  // 学生集合

        Student student = new Student(165165, "",32);  // 学生
        Student student1 = new Student(100001,"e",54);  // 学生
        students.add(student1);  // 学生集合+学生
        students.add(student);  // 学生集合+学生
        students.add(new Student(100001,"e",54));  // 学生集合+学生

        Score score = new Score(students);






        int x = 5;

        add(5,2);
        add(x,2);
        add(returnInt(),2);


        /*
        1.创建Student类,声明 学号 学生名称  成绩 等变量;  生成构造方法,ste,get方法
        2.创建 Score 类  创建Set 生成构造方法,  打印Score里的学生信息, 算出学生的平均成绩
        3.创建Test类   初始化Score  保存学生信息


         */

/*
        List<Student> studentList = new ArrayList<>();
        studentList.add(new Student(1000,"r",68));

        Map<Integer,Student> studentMap = new HashMap<>();
        studentMap.put(1,new Student(10001,"他",89));

        Map<String,Student> StudentMap1 = new HashMap<>();

        Student student2 = new Student(10001,"他",89);
        StudentMap1.put(student2.getName(), student2);

        String s = "张三555";
        StudentMap1.put(s, new Student(10000,s,85));

        StudentMap1.put("wangwi555", new Student(10000,"wangwi555",56));



        Student student3 = new Student(523, "vbjdskb", 63);
        student3.setChengJi(65);
        System.out.println("学生成绩: "+student3.getChengJi());*/




    }


    public static void add(int x, int y){

    }

    public static int returnInt(){
        Random random = new Random();
        return  random.nextInt();
    }

}
